package com.hospital.hospitalmedicalrecordservice.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author 韩天雨
 * @since 2020-10-28
 */
@Data
@Accessors(chain = true)
public class Vipperson extends Model<Vipperson> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 卡号
     */
    private String cardid;

    /**
     * 患者用户
     */
    private Integer sickpersonId;

    /**
     * 累计消费
     */
    private Double consumption;

    /**
     * 储值余额
     */
    private Double balance;

    /**
     * 累计储值
     */
    private Double summoney;

    /**
     * 积分
     */
    private Integer sumscore;

    /**
     * 开卡时间
     */
    private Date createtime;

    /**
     * 到期时间
     */
    private Date endtime;

    /**
     * 会员状态
     */
    private Integer status;

    @TableField(exist = false)
    private String time1;
    @TableField(exist = false)
    private String time2;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
